<h1>Editing generation</h1>

<%= error_messages_for :generation %>

<% form_for(@generation) do |f| %>
  <p>
    <b>Project</b><br />
    <%= f.text_field :project_id %>
  </p>

  <p>
    <b>Start time</b><br />
    <%= f.datetime_select :start_time %>
  </p>

  <p>
    <b>End time</b><br />
    <%= f.datetime_select :end_time %>
  </p>

  <p>
    <b>Update duration</b><br />
    <%= f.text_field :update_duration %>
  </p>

  <p>
    <b>Data collection duration</b><br />
    <%= f.text_field :data_collection_duration %>
  </p>

  <p>
    <b>Rendering duration</b><br />
    <%= f.text_field :rendering_duration %>
  </p>

  <p>
    <b>Generator</b><br />
    <%= f.text_field :generator_id %>
  </p>

  <p>
    <b>Complete</b><br />
    <%= f.check_box :complete %>
  </p>

  <p>
    <%= f.submit "Update" %>
  </p>
<% end %>

<%= link_to 'Show', @generation %> |
<%= link_to 'Back', generations_path %>
